@import 'story/assets/css/var.scss';

.code-demo {
  width: 80%;
  border: 1px solid #ebebeb;
  border-radius: 3px;

  &-display {
    padding: 20px;
    box-sizing: border-box;
  }

  &-source {
    background: rgba(#2d2d2d, 0.8);
    box-sizing: border-box;
    padding: 20px;
    font-size: 13px;
  }

  &-fill {
    background: rgba(#2d2d2d, 0.8);
    width: 100%;
    height: 1px;
  }

  &-fun {
    width: 100%;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    position: relative;

    span {
      font-size: 13px;
    }

    & > span,
    & > i {
      cursor: pointer;
    }

    i {
      font-size: 20px;
    }

    a {
      position: absolute;
      top: 50%;
      right: 20px;
      transform: translateY(-50%);
      text-decoration: none;
      color: rgba($mainColor, 0.7);
    }
  }

  .labelColor {
    color: #e2777a;
  }

  .separatorColor {
    color: #ccc;
  }

  .valueColor {
    color: #7ec699;
  }

  .lineHeight {
    line-height: 24px;
  }
}
